





var lxmodivDivs = document.querySelectorAll(".lxmodadiv .lxmodiv");
var spans = document.querySelectorAll(".lx5a span");
  
for (var i = 0; i < spans.length; i++) {
	spans[i].index = i;
	spans[i].onclick = function (e) {
		for (var i = 0; i < spans.length; i++) {
			spans[i].className = "";
			lxmodivDivs[i].className = "lxmodiv";

		}
		/*
			e.target:事件的触发者
			e.currentTarget:事件处理者
		*/
		spans[e.currentTarget.index].className = "lx5aadiv";
		lxmodivDivs[e.currentTarget.index].className = "lxmodiv lxmo-div";

	};
}
